<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Document</title>
</head>
<body>
  <script>
    let arr = [1,2,3,4,5];

    let result = arr.reduce((prev, value) => {
      return prev + value;
    });

    console.log(result);

    // arr.ev

  </script>
</body>
</html>